package com.wcity.manage.dao.model;

import com.wcity.manage.dao.dal.model.AbstractModel;

import java.util.Date;

/**
 * Created by jn on 2016/12/7.
 * 注册用户实体类
 */
public class Register extends AbstractModel {

    private static final long serialVersionUID = -6602746866277681140L;

    private int id;
    private String phone;                           // 手机号
    private String nickname;                        // 昵称
    private String icon;                            // 头像
    private String password;                        // 密码
    private int blockId;                            // 小区id
    private int userId;                             // 物业社区id

    private String token;                           // token
    private Date expireTime;                        // token生成时间

    private String building;                        // 楼栋
    private String unit;                            // 单元
    private String house;                           // 门牌号

    private Date registerTime;                  // 注册时间
    private Date loginTime;                     // 上次登录时间

    private Block block;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Block getBlock() {
        return block;
    }

    public void setBlock(Block block) {
        this.block = block;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getHouse() {
        return house;
    }

    public void setHouse(String house) {
        this.house = house;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getBlockId() {
        return blockId;
    }

    public void setBlockId(int blockId) {
        this.blockId = blockId;
    }
}
